//
//  CALoginApi.m
//  LNH
//
//  Created by twentylx on 2018/2/4.
//  Copyright © 2018年 twentylx. All rights reserved.
//

#import "CALoginApi.h"

@implementation CALoginApi {
    NSString *_phone;
    NSString *_verifyCode;
    NSString *_tjm;
}

- (instancetype) initWithPhone:(NSString *) phone VerifyCode:(NSString *) verifyCode TJM:(NSString *) tjm {
    self = [super init];
    if (!self) return nil;
    
    _phone = phone;
    _verifyCode = verifyCode;
    _tjm = tjm;
    
    return self;
}

-(YTKRequestMethod)requestMethod{
    return YTKRequestMethodPOST;
}

-(id)requestArgument{
    return @{
             @"mobile":_phone,
             @"mobile_code":_verifyCode,
             @"invite_code":_tjm,
             };
}

-(NSString *)requestUrl{
    NSLog(@"%@", [NSString stringWithFormat:@"%@loginOrRegister",BASE_SERVICE_DOMAIN]);
    return [NSString stringWithFormat:@"%@loginOrRegister",BASE_SERVICE_DOMAIN];
    
    
}

@end
